package com.queue;

import java.util.ArrayDeque;
import java.util.Queue;

public class QueueEx {
    public static void main(String[] args) {
        Queue a = new ArrayDeque();
        a.add(1);
        a.add(2);
        System.out.println(a.poll());
        System.out.println(a.poll());
    }
}
